﻿<UserControl x:Class="MyImdb.Views.SettingsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
             mc:Ignorable="d"
             d:DesignHeight="600"
             d:DesignWidth="800">
    <Grid>
        <GroupBox Header="Set Database Path"
                  VerticalAlignment="Top"
                  Height="100">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition Width="67" />
                </Grid.ColumnDefinitions>
                <TextBox HorizontalAlignment="Stretch"
                         TextWrapping="NoWrap"
                         VerticalAlignment="Center"
                         Controls:TextboxHelper.Watermark="Set your database path..."
                         Controls:TextboxHelper.ClearTextButton="False"
                         IsReadOnly="True"
                         Text="{Binding AppSettings.DatabasePath}"
                         Margin="10,0" />

                <Button Style="{DynamicResource MetroCircleButtonStyle}"
                        Height="35"
                        Width="35"
                        Grid.Column="1"
                        Command="{Binding ChangeDatabaseCommand}"
                        VerticalAlignment="Center" HorizontalAlignment="Center">
                    <Rectangle Width="15"
                               Height="15">
                        <Rectangle.Fill>
                            <VisualBrush Stretch="Fill"
                                         Visual="{StaticResource appbar_folder_open}" />
                        </Rectangle.Fill>
                    </Rectangle>
                </Button>

            </Grid>
        </GroupBox>

    </Grid>
</UserControl>
